<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * @property int    $id
 * @property string $userName
 * @property string $avatar
 * @property string $ddUserID
 * @property string $videoUrl
 * @property int    $votes
 * @property string $updateAt
 * @property string $createAt
 * @property string $deleteAt
 * @property string $account
 * @property string $passwd
 */
class User extends Model
{
    use SoftDeletes;

    const CREATED_AT = 'createAt';
    const UPDATED_AT = 'updateAt';

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'user';

    /**
     * @var array
     */
    protected $fillable = [
        'userName',
        'avatar',
        'ddUserID',
        'videoUrl',
        'votes',
        'updateAt',
        'createAt',
        'deleteAt',
        'account',
        'passwd',
    ];

}
